import { createRouter, createWebHistory } from "vue-router";
// import Home from '../views/Home.vue';

export const router = createRouter({
    history: createWebHistory(),
    routes: [
        {
            path: '/',
            name: 'Home',
            component: () => import('../views/Home.vue')
        },
        {
            path: '/about',
            name: 'About',
        }
    ]
})



// 安装路由
export function initRouter(app) {
    app.use(router);
}


